package com.ba.base.view

import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

interface ILifecycle : LifecycleObserver {

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    fun onCreateLifecycle()

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun onResumeLifecycle()

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    fun onPauseLifecycle()

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    fun onDestroyLifecycle()

    @OnLifecycleEvent(Lifecycle.Event.ON_ANY)
    fun onChangedLifecycle()

}